home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / pidgin.preinst < prev    next >
Text File  |  2009-10-14  |  1KB  |  47 lines

  1. #!/bin/sh
  2. # preinst script for pidgin
  3. #
  4. # see: dh_installdeb(1)
  5.  
  6. set -e
  7.  
  8. # summary of how this script can be called:
  9. #        * <new-preinst> `install'
  10. #        * <new-preinst> `install' <old-version>
  11. #        * <new-preinst> `upgrade' <old-version>
  12. #        * <old-preinst> `abort-upgrade' <new-version>
  13. # for details, see http://www.debian.org/doc/debian-policy/ or
  14. # the debian-policy package
  15.  
  16.  
  17. case "$1" in
  18.     install|upgrade)
  19.         if dpkg --compare-versions "$2" lt 2.1.1-2; then 
  20.             if [ -h /usr/share/doc/pidgin ]; then
  21.                 rm /usr/share/doc/pidgin
  22.             fi
  23.         fi
  24.         if dpkg --compare-versions "$2" le 2.6.2-1ubuntu3; then
  25.             rm /etc/indicators/messages/applications/pidgin || true
  26.             rmdir --ignore-fail-on-non-empty /etc/indicators/messages/applications/ || true
  27.         fi
  28.     ;;
  29.  
  30.     abort-upgrade)
  31.     ;;
  32.  
  33.     *)
  34.         echo "preinst called with unknown argument \`$1'" >&2
  35.         exit 1
  36.     ;;
  37. esac
  38.  
  39. # dh_installdeb will replace this with shell code automatically
  40. # generated by other debhelper scripts.
  41.  
  42.  
  43.  
  44. exit 0
  45.  
  46.  
  47.